package com.example.reagent_management.room.entity;

import java.util.Calendar;

import androidx.room.ColumnInfo;
import androidx.room.Ignore;

import com.example.lib_base.utils.DateConvertUtils;

public class ReagentInfoQuery {
    @ColumnInfo(name = "project_name")
    private String projectName;
    @ColumnInfo(name = "time")
    private Calendar createTime;
    @ColumnInfo(name = "type")
    private String reagentType;

    @Ignore
    private String time;

    public ReagentInfoQuery() {
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Calendar getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Calendar createTime) {
        this.createTime = createTime;
        this.setTime(DateConvertUtils.convertTimeToStringCH(createTime.getTimeInMillis(),"yyyy-MM-dd HH:mm:ss"));
    }

    public String getReagentType() {
        return reagentType;
    }

    public void setReagentType(String reagentType) {
        this.reagentType = reagentType;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
